package com.mayikt;

import java.util.concurrent.locks.LockSupport;

/**
 * @ClassName Test013
 * @Author 蚂蚁课堂余胜军 QQ644064779 www.mayikt.com
 * @Version V1.0
 **/
public class Test013 {


    public static void main(String[] args) {
        Thread t1 = new Thread(() -> {
            System.out.println("start");
            LockSupport.park();//
            System.out.println("end");
        });
        t1.start();
        try {
            Thread.sleep(1000);
        } catch (Exception e) {

        }
        t1.interrupt();
//        System.out.println("主线程唤醒子线程");
//        LockSupport.unpark(t1);
    }
}
